package gate_api

import (
	"base"
	"center_server/model"
	"proto/base"
	"proto/server/gate"
)

var (
	// 添加客户端
	GetClient func(gateId base.AgentId, clientId base.ClientId) (result *model.Client, exists bool)

	// 移除客户端
	RemoveClient func(gateId base.AgentId, clientId base.ClientId)

	// 玩家登录游戏
	Logout func(gateId base.AgentId, clientId base.ClientId, reason proto_base.LogoutReason)

	// 返回玩家登录游戏
	OnLogin func(gateId base.AgentId, clientId base.ClientId, msg *proto_server_gate.OnLogin)

	// 包含所有网关服务器的内部地址, 用于游戏服务器主动连接
	InnerAddrs func() (result map[base.AgentId]string)
)
